package com.xoa.model.template;

import java.util.ArrayList;
import java.util.List;

public class TemplateModuleExample {

    protected String orderByClause;


    protected boolean distinct;


    protected List<Criteria> oredCriteria;


    public TemplateModuleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }


    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }


    public String getOrderByClause() {
        return orderByClause;
    }


    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }


    public boolean isDistinct() {
        return distinct;
    }


    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }


    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }


    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }


    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }


    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }


    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }


    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(String value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(String value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(String value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(String value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(String value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(String value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(String value) {
            addCriterion("type like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(String value) {
            addCriterion("type not like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<String> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<String> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(String value1, String value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(String value1, String value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andPrivUserIsNull() {
            addCriterion("priv_user is null");
            return (Criteria) this;
        }

        public Criteria andPrivUserIsNotNull() {
            addCriterion("priv_user is not null");
            return (Criteria) this;
        }

        public Criteria andPrivUserEqualTo(String value) {
            addCriterion("priv_user =", value, "privUser");
            return (Criteria) this;
        }

        public Criteria andPrivUserNotEqualTo(String value) {
            addCriterion("priv_user <>", value, "privUser");
            return (Criteria) this;
        }

        public Criteria andPrivUserGreaterThan(String value) {
            addCriterion("priv_user >", value, "privUser");
            return (Criteria) this;
        }

        public Criteria andPrivUserGreaterThanOrEqualTo(String value) {
            addCriterion("priv_user >=", value, "privUser");
            return (Criteria) this;
        }

        public Criteria andPrivUserLessThan(String value) {
            addCriterion("priv_user <", value, "privUser");
            return (Criteria) this;
        }

        public Criteria andPrivUserLessThanOrEqualTo(String value) {
            addCriterion("priv_user <=", value, "privUser");
            return (Criteria) this;
        }

        public Criteria andPrivUserLike(String value) {
            addCriterion("priv_user like", value, "privUser");
            return (Criteria) this;
        }

        public Criteria andPrivUserNotLike(String value) {
            addCriterion("priv_user not like", value, "privUser");
            return (Criteria) this;
        }

        public Criteria andPrivUserIn(List<String> values) {
            addCriterion("priv_user in", values, "privUser");
            return (Criteria) this;
        }

        public Criteria andPrivUserNotIn(List<String> values) {
            addCriterion("priv_user not in", values, "privUser");
            return (Criteria) this;
        }

        public Criteria andPrivUserBetween(String value1, String value2) {
            addCriterion("priv_user between", value1, value2, "privUser");
            return (Criteria) this;
        }

        public Criteria andPrivUserNotBetween(String value1, String value2) {
            addCriterion("priv_user not between", value1, value2, "privUser");
            return (Criteria) this;
        }

        public Criteria andPrivOrgIsNull() {
            addCriterion("priv_org is null");
            return (Criteria) this;
        }

        public Criteria andPrivOrgIsNotNull() {
            addCriterion("priv_org is not null");
            return (Criteria) this;
        }

        public Criteria andPrivOrgEqualTo(String value) {
            addCriterion("priv_org =", value, "privOrg");
            return (Criteria) this;
        }

        public Criteria andPrivOrgNotEqualTo(String value) {
            addCriterion("priv_org <>", value, "privOrg");
            return (Criteria) this;
        }

        public Criteria andPrivOrgGreaterThan(String value) {
            addCriterion("priv_org >", value, "privOrg");
            return (Criteria) this;
        }

        public Criteria andPrivOrgGreaterThanOrEqualTo(String value) {
            addCriterion("priv_org >=", value, "privOrg");
            return (Criteria) this;
        }

        public Criteria andPrivOrgLessThan(String value) {
            addCriterion("priv_org <", value, "privOrg");
            return (Criteria) this;
        }

        public Criteria andPrivOrgLessThanOrEqualTo(String value) {
            addCriterion("priv_org <=", value, "privOrg");
            return (Criteria) this;
        }

        public Criteria andPrivOrgLike(String value) {
            addCriterion("priv_org like", value, "privOrg");
            return (Criteria) this;
        }

        public Criteria andPrivOrgNotLike(String value) {
            addCriterion("priv_org not like", value, "privOrg");
            return (Criteria) this;
        }

        public Criteria andPrivOrgIn(List<String> values) {
            addCriterion("priv_org in", values, "privOrg");
            return (Criteria) this;
        }

        public Criteria andPrivOrgNotIn(List<String> values) {
            addCriterion("priv_org not in", values, "privOrg");
            return (Criteria) this;
        }

        public Criteria andPrivOrgBetween(String value1, String value2) {
            addCriterion("priv_org between", value1, value2, "privOrg");
            return (Criteria) this;
        }

        public Criteria andPrivOrgNotBetween(String value1, String value2) {
            addCriterion("priv_org not between", value1, value2, "privOrg");
            return (Criteria) this;
        }

        public Criteria andPrivRoleIsNull() {
            addCriterion("priv_role is null");
            return (Criteria) this;
        }

        public Criteria andPrivRoleIsNotNull() {
            addCriterion("priv_role is not null");
            return (Criteria) this;
        }

        public Criteria andPrivRoleEqualTo(String value) {
            addCriterion("priv_role =", value, "privRole");
            return (Criteria) this;
        }

        public Criteria andPrivRoleNotEqualTo(String value) {
            addCriterion("priv_role <>", value, "privRole");
            return (Criteria) this;
        }

        public Criteria andPrivRoleGreaterThan(String value) {
            addCriterion("priv_role >", value, "privRole");
            return (Criteria) this;
        }

        public Criteria andPrivRoleGreaterThanOrEqualTo(String value) {
            addCriterion("priv_role >=", value, "privRole");
            return (Criteria) this;
        }

        public Criteria andPrivRoleLessThan(String value) {
            addCriterion("priv_role <", value, "privRole");
            return (Criteria) this;
        }

        public Criteria andPrivRoleLessThanOrEqualTo(String value) {
            addCriterion("priv_role <=", value, "privRole");
            return (Criteria) this;
        }

        public Criteria andPrivRoleLike(String value) {
            addCriterion("priv_role like", value, "privRole");
            return (Criteria) this;
        }

        public Criteria andPrivRoleNotLike(String value) {
            addCriterion("priv_role not like", value, "privRole");
            return (Criteria) this;
        }

        public Criteria andPrivRoleIn(List<String> values) {
            addCriterion("priv_role in", values, "privRole");
            return (Criteria) this;
        }

        public Criteria andPrivRoleNotIn(List<String> values) {
            addCriterion("priv_role not in", values, "privRole");
            return (Criteria) this;
        }

        public Criteria andPrivRoleBetween(String value1, String value2) {
            addCriterion("priv_role between", value1, value2, "privRole");
            return (Criteria) this;
        }

        public Criteria andPrivRoleNotBetween(String value1, String value2) {
            addCriterion("priv_role not between", value1, value2, "privRole");
            return (Criteria) this;
        }

        public Criteria andCategoryIdIsNull() {
            addCriterion("category_id is null");
            return (Criteria) this;
        }

        public Criteria andCategoryIdIsNotNull() {
            addCriterion("category_id is not null");
            return (Criteria) this;
        }

        public Criteria andCategoryIdEqualTo(String value) {
            addCriterion("category_id =", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdNotEqualTo(String value) {
            addCriterion("category_id <>", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdGreaterThan(String value) {
            addCriterion("category_id >", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdGreaterThanOrEqualTo(String value) {
            addCriterion("category_id >=", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdLessThan(String value) {
            addCriterion("category_id <", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdLessThanOrEqualTo(String value) {
            addCriterion("category_id <=", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdLike(String value) {
            addCriterion("category_id like", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdNotLike(String value) {
            addCriterion("category_id not like", value, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdIn(List<String> values) {
            addCriterion("category_id in", values, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdNotIn(List<String> values) {
            addCriterion("category_id not in", values, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdBetween(String value1, String value2) {
            addCriterion("category_id between", value1, value2, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCategoryIdNotBetween(String value1, String value2) {
            addCriterion("category_id not between", value1, value2, "categoryId");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Integer value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Integer value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Integer value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Integer value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Integer value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Integer> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Integer> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Integer value1, Integer value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("create_user is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("create_user is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(Integer value) {
            addCriterion("create_user =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(Integer value) {
            addCriterion("create_user <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(Integer value) {
            addCriterion("create_user >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(Integer value) {
            addCriterion("create_user >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(Integer value) {
            addCriterion("create_user <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(Integer value) {
            addCriterion("create_user <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<Integer> values) {
            addCriterion("create_user in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<Integer> values) {
            addCriterion("create_user not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(Integer value1, Integer value2) {
            addCriterion("create_user between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(Integer value1, Integer value2) {
            addCriterion("create_user not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andAttUrlIsNull() {
            addCriterion("att_url is null");
            return (Criteria) this;
        }

        public Criteria andAttUrlIsNotNull() {
            addCriterion("att_url is not null");
            return (Criteria) this;
        }

        public Criteria andAttUrlEqualTo(String value) {
            addCriterion("att_url =", value, "attUrl");
            return (Criteria) this;
        }

        public Criteria andAttUrlNotEqualTo(String value) {
            addCriterion("att_url <>", value, "attUrl");
            return (Criteria) this;
        }

        public Criteria andAttUrlGreaterThan(String value) {
            addCriterion("att_url >", value, "attUrl");
            return (Criteria) this;
        }

        public Criteria andAttUrlGreaterThanOrEqualTo(String value) {
            addCriterion("att_url >=", value, "attUrl");
            return (Criteria) this;
        }

        public Criteria andAttUrlLessThan(String value) {
            addCriterion("att_url <", value, "attUrl");
            return (Criteria) this;
        }

        public Criteria andAttUrlLessThanOrEqualTo(String value) {
            addCriterion("att_url <=", value, "attUrl");
            return (Criteria) this;
        }

        public Criteria andAttUrlLike(String value) {
            addCriterion("att_url like", value, "attUrl");
            return (Criteria) this;
        }

        public Criteria andAttUrlNotLike(String value) {
            addCriterion("att_url not like", value, "attUrl");
            return (Criteria) this;
        }

        public Criteria andAttUrlIn(List<String> values) {
            addCriterion("att_url in", values, "attUrl");
            return (Criteria) this;
        }

        public Criteria andAttUrlNotIn(List<String> values) {
            addCriterion("att_url not in", values, "attUrl");
            return (Criteria) this;
        }

        public Criteria andAttUrlBetween(String value1, String value2) {
            addCriterion("att_url between", value1, value2, "attUrl");
            return (Criteria) this;
        }

        public Criteria andAttUrlNotBetween(String value1, String value2) {
            addCriterion("att_url not between", value1, value2, "attUrl");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table template
     *
     * @mbggenerated do_not_delete_during_merge
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table template
     *
     * @mbggenerated
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}